<?php
class IndexController extends CommController{
    public function init()
    {
        parent::init();
     /*   $ModuleName = $this->getModuleName();
        if($ModuleName=="Index"){
            $path=Yaf_Application::app()->getConfig()->application->directory . 'views/';
        }else{
            $path=Yaf_Application::app()->getConfig()->application->directory . 'modules/views/';
        }
        echo $path;
        $this->getView()->setScriptPath($path);*/
    }

    public function indexAction(){
		$a=array(
			"uid"=>'19',
			"username"=>'fas',
			"sid"=>"1000",
		);
     //   $this->initView();
		var_dump($this->getViewPath()) ;
		var_dump($this->getView()->getScriptPath());
		$this->display("index", $a);
	}
}